import request from '@/utils/request';

//列表
export function signInList(data) {
  return request({
    url: 'signIn/list',
    method: 'post',
    data
  });
}
//新增
export function signInAdd(data) {
  return request({
    url: 'signIn/add',
    method: 'post',
    data
  });
}

//删除
export function signInDelete(data) {
  return request({
    url: 'signIn/delete',
    method: 'post',
    data
  });
}

//修改
export function signInEdit(data) {
  return request({
    url: 'signIn/edit',
    method: 'post',
    data
  });
}

// 获取小程序签人数和签到按钮是否可签
export function signInListIsSign(data) {
  return request({
    url: 'signIn/listIsSign',
    method: 'post',
    data
  });
}
// 获取小程序签到列表查询
export function signInListWx(data) {
  return request({
    url: 'signIn/listWx',
    method: 'post',
    data
  });
}

export default {
  signInList,
  signInAdd,
  signInEdit,
  signInDelete,
};
